<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>PMX:  Fichier source de src/common/cpp/Level.hpp</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="namespaces.html"><span>Espaces&nbsp;de&nbsp;nommage</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li><a href="dirs.html"><span>Répertoires</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Liste&nbsp;des&nbsp;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&nbsp;de&nbsp;fichier</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_e08a05a7fafdbe979296d067956bf060.html">src</a>&nbsp;&raquo;&nbsp;<a class="el" href="dir_1944d9b6a1593171d7cb519cfe7ca8ad.html">common</a>&nbsp;&raquo;&nbsp;<a class="el" href="dir_0d5996d474515241e0574b0fa370488d.html">cpp</a>
  </div>
</div>
<div class="contents">
<h1>Level.hpp</h1><a href="Level_8hpp.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00006"></a>00006 <span class="preprocessor">#ifndef UTILS_LEVEL_HPP</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span><span class="preprocessor">#define UTILS_LEVEL_HPP</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00010"></a>00010 
<a name="l00011"></a><a class="code" href="namespaceutils.html">00011</a> <span class="keyword">namespace </span>utils
<a name="l00012"></a>00012 {
<a name="l00022"></a><a class="code" href="classutils_1_1Level.html">00022</a>     <span class="keyword">class </span><a class="code" href="classutils_1_1Level.html" title="Cette classe représente un niveau de trace.">Level</a>
<a name="l00023"></a>00023     {
<a name="l00024"></a>00024     <span class="keyword">public</span>:
<a name="l00025"></a>00025         
<a name="l00029"></a><a class="code" href="classutils_1_1Level.html#ae7922549d0744f0dba6693adb78479bb">00029</a>         <span class="keyword">static</span> <a class="code" href="classutils_1_1Level.html" title="Cette classe représente un niveau de trace.">Level</a> <a class="code" href="classutils_1_1Level.html#ae7922549d0744f0dba6693adb78479bb" title="Niveau pour les messages destinés à faciliter le debuggage de l&amp;#39;application...">DEBUG</a>;
<a name="l00030"></a>00030         
<a name="l00035"></a><a class="code" href="classutils_1_1Level.html#a0c92bcc95cf2cda5fee80066d80944de">00035</a>         <span class="keyword">static</span> <a class="code" href="classutils_1_1Level.html" title="Cette classe représente un niveau de trace.">Level</a> <a class="code" href="classutils_1_1Level.html#a0c92bcc95cf2cda5fee80066d80944de" title="Niveau pour les messages d&amp;#39;informations sur l&amp;#39;état de l&amp;#39;objet et du...">INFO</a>;
<a name="l00036"></a>00036         
<a name="l00040"></a><a class="code" href="classutils_1_1Level.html#ab391db9399f86e1d1abb46c855a3a205">00040</a>         <span class="keyword">static</span> <a class="code" href="classutils_1_1Level.html" title="Cette classe représente un niveau de trace.">Level</a> <a class="code" href="classutils_1_1Level.html#ab391db9399f86e1d1abb46c855a3a205" title="Niveau pour les messages d&amp;#39;avertissements.">WARN</a>;
<a name="l00041"></a>00041         
<a name="l00045"></a><a class="code" href="classutils_1_1Level.html#a126f38f4f86e9d099323a625b83b758d">00045</a>         <span class="keyword">static</span> <a class="code" href="classutils_1_1Level.html" title="Cette classe représente un niveau de trace.">Level</a> <a class="code" href="classutils_1_1Level.html#a126f38f4f86e9d099323a625b83b758d" title="Niveau pour les messages d&amp;#39;erreurs.">ERROR</a>;
<a name="l00046"></a>00046         
<a name="l00050"></a><a class="code" href="classutils_1_1Level.html#a8f54543cf4c951de794a9392600035b5">00050</a>         <span class="keyword">static</span> <a class="code" href="classutils_1_1Level.html" title="Cette classe représente un niveau de trace.">Level</a> <a class="code" href="classutils_1_1Level.html#a8f54543cf4c951de794a9392600035b5" title="Niveau utilisé pour activer toutes les traces pour un Logger donné.">ALL</a>;
<a name="l00051"></a>00051         
<a name="l00055"></a><a class="code" href="classutils_1_1Level.html#aaa782d1a4fbf48493064de030033e7a0">00055</a>         <span class="keyword">static</span> <a class="code" href="classutils_1_1Level.html" title="Cette classe représente un niveau de trace.">Level</a> <a class="code" href="classutils_1_1Level.html#aaa782d1a4fbf48493064de030033e7a0" title="Niveau utilisé pour désactiver les traces pour un Logger donné.">NONE</a>;
<a name="l00056"></a>00056         
<a name="l00057"></a>00057     <span class="keyword">private</span>:
<a name="l00058"></a>00058         
<a name="l00066"></a>00066         <span class="keywordtype">short</span> value_;
<a name="l00067"></a>00067         
<a name="l00073"></a>00073         std::string name_;
<a name="l00074"></a>00074         
<a name="l00075"></a>00075     <span class="keyword">public</span>:
<a name="l00076"></a>00076         
<a name="l00084"></a><a class="code" href="classutils_1_1Level.html#a9b2248056e17b017d4f95dbefedbc3b9">00084</a>         <a class="code" href="classutils_1_1Level.html#a9b2248056e17b017d4f95dbefedbc3b9" title="Constructeur de la classe.">Level</a>(<span class="keywordtype">short</span> value, <span class="keyword">const</span> std::string &amp; <a class="code" href="classutils_1_1Level.html#a67beee56573e4521b50d55936931bd5a" title="Cette méthode retourne le nom de ce niveau.">name</a>): value_(value),
<a name="l00085"></a>00085                 name_(name)
<a name="l00086"></a>00086         {}
<a name="l00087"></a>00087         
<a name="l00091"></a><a class="code" href="classutils_1_1Level.html#a484622f3b5d1814710a1eeb884485bf7">00091</a>         <span class="keyword">virtual</span> <a class="code" href="classutils_1_1Level.html#a484622f3b5d1814710a1eeb884485bf7" title="Destructeur de la classe.">~ Level</a>()
<a name="l00092"></a>00092         {}
<a name="l00093"></a>00093         
<a name="l00098"></a><a class="code" href="classutils_1_1Level.html#a67beee56573e4521b50d55936931bd5a">00098</a>         <span class="keyword">inline</span> <span class="keyword">const</span> std::string &amp; <a class="code" href="classutils_1_1Level.html#a67beee56573e4521b50d55936931bd5a" title="Cette méthode retourne le nom de ce niveau.">name</a>()<span class="keyword"> const</span>
<a name="l00099"></a>00099 <span class="keyword">        </span>{
<a name="l00100"></a>00100             <span class="keywordflow">return</span> name_;
<a name="l00101"></a>00101         }
<a name="l00102"></a>00102         
<a name="l00112"></a><a class="code" href="classutils_1_1Level.html#a40a4649fe25903205920c4cf744d5839">00112</a>         <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classutils_1_1Level.html#a40a4649fe25903205920c4cf744d5839" title="Comparateur de supériorité.">operator &gt;= </a>(<span class="keyword">const</span> <a class="code" href="classutils_1_1Level.html" title="Cette classe représente un niveau de trace.">Level</a> &amp; level)<span class="keyword"> const</span>
<a name="l00113"></a>00113 <span class="keyword">        </span>{
<a name="l00114"></a>00114             <span class="keywordflow">return</span> value_ &gt;= level.value_;
<a name="l00115"></a>00115         }
<a name="l00116"></a>00116         
<a name="l00126"></a><a class="code" href="classutils_1_1Level.html#a32f2f721d7fa4451edbda5416db814fa">00126</a>         <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classutils_1_1Level.html#a32f2f721d7fa4451edbda5416db814fa" title="Comparateur d&amp;#39;égalité.">operator == </a>(<span class="keyword">const</span> <a class="code" href="classutils_1_1Level.html" title="Cette classe représente un niveau de trace.">Level</a> &amp; level)<span class="keyword"> const</span>
<a name="l00127"></a>00127 <span class="keyword">        </span>{
<a name="l00128"></a>00128             <span class="keywordflow">return</span> value_ == level.value_;
<a name="l00129"></a>00129         }
<a name="l00130"></a>00130     };
<a name="l00131"></a>00131 };
<a name="l00132"></a>00132 
<a name="l00133"></a>00133 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>
Generated on Wed Feb 19 21:00:55 2014 for PMX by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.6.3</small></address>
</body>
</html>
